package com.example.common.entity;

import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

@Data
@Entity
@Table(name = "sys_roles")
public class Roles implements Serializable {

	private static final long serialVersionUID = 6999669656466285710L;
	@Id
	@Column(name = "id_bigint", columnDefinition = "bigint(20)")
	private Long id;
	@Column(name = "name_nvarchar", columnDefinition = "varchar(255)")
	private String name;
	@Column(name = "remark_nvarchar", columnDefinition = "varchar(255)")
	private String remark;
	@Column(name = "create_time_datetime", columnDefinition = "datetime(3)")
	private Date createTime;
}
